package com.dys.testlinkedlist05;

/**
 * @className: com.dys.testlinkedlist05.Node
 * @description: com.dys.testlinkedlist05
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/08/02 下午9:54
 */
public class Node {
    // 前一个
    private Node prev;
    // 数据
    private Object data;
    // 后一个
    private Node next;

    public Node getPrev() {
        return prev;
    }

    public void setPrev(Node prev) {
        this.prev = prev;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    @Override
    public String toString() {
        return "Node{" +
                "prev=" + prev +
                ", data=" + data +
                ", next=" + next +
                '}';
    }
}
